<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
       
      <script type="text/javascript">
       
         //测试,可以选择课程  和是否显示答案  和收藏题目  
         function cheshi()
         {
            <c:if test="${sessionScope.userType==null}">
                  alert("请先登录");
            </c:if>;
            
            <c:if test="${sessionScope.userType!=null}">
                var url="<%=path %>/qiantai/timu/cheshi.jsp";
				 window.location.href=url;    </c:if>
         } 
         //考试,可以选择课  
         function test()
         {
            <c:if test="${sessionScope.userType==null}">     
                  alert("请先登录");
            </c:if>;
            
            <c:if test="${sessionScope.userType!=null}">
                var url="<%=path %>/qiantai/timu/test.jsp";
				 window.open(url);          //这里必须新开窗口,否则计时会重复 

				 
				    </c:if>
         } 
      </script>

<table width="100%" border="0" cellspacing="0"  background="<%=path %>/images/top_bg.gif" >
    <tr background="<%=path %>/images/top_bg.gif" >
    <td height="97"   align="center">  <img src="<%=path %>/images/logo.gif" /> </td>
    
  </tr>
  <tr>
    <td colspan="2" background="<%=path %>/images/nav_bg.gif"><div id="menu">
        <ul class="nav">
          <li> <a href="<%=path %>/qiantai/default.jsp" class="navLink">首 页</a> </li>
          
          
          <li> <a href="#" onclick="test()" class="navLink">期末考试</a> </li>
          <!--<li> <a href="<%=path %>/liuyan?type=liuyanAll"  class="navLink">留言</a></li>  -->
        </ul>
      </div></td>
  </tr>
</table>
